Extract method for clarity