Tidy of native generated code.