When to refactor your codebase.