Clean up API method signature and docstring.