Refactored: Extract method