Remove unnecessary type definitions.