Clean legacy code.