[code-quality] How to start managing cyclomatic complexity for legacy code