move removing allergy _id, __v, metadata, patKey to records common