Refactoring of code to improve code quality and reduce complexity.