Refactor (DRY, modularity, complexity, lint).