Add a docstring and clean up variable names in _get_converter