Remove unnecessary type field.