Refactor docstrings.