Refactoring: Reducing Cyclomatic Complexity