Remove extraneous namespace imports from generated code.