Use the stdlib deprecation() function