Refactoring with Method: Extract Method