Refactoring: Extract method