Second Refactoring: Extract Method