Corrected refactored function documentation.