Remove unnecessary generated code