remove extra auto-added keys from doc in the insert deny function