Fix code complexity.