Refactoring step: Extract Method