Remove extraneous type definitions.