Clean up generated code.