Extract method refactoring to reduce excessive cyclomatic complexity