Remove unnecessary fields.