Method refactoring.