remove duplicate codegen