By renaming it and updating the docstring. Additionally, refactors a method which is used only by tests.