Cleaning toxic code