Extract method refactoring.