   ;; ring-json middleware will handle converting the body to json
   {:status (ingest-status-code result)
    :headers {"Content-Type" (mt/format->mime-type :json)}
-   :body (contextualize-warnings result)})
+   :body result})
 
 (defmethod generate-ingest-response :xml
   [headers result]
   {:status (ingest-status-code result)
    :headers {"Content-Type" (mt/format->mime-type :xml)}
-   :body (result-map->xml (contextualize-warnings result))})
+   :body (result-map->xml result)})
 
 (defmulti generate-validate-response
   "Convert a result to a proper response format"

    (let [validate-response (ingest/validate-and-prepare-collection request-context
                                                                    concept
                                                                    validation-options)]
      (generate-validate-response headers (util/remove-nil-keys (select-keys validate-response [:warnings]))))))

(defn ingest-collection
  [provider-id native-id request]

    (acl/verify-ingest-management-permission request-context :update :provider-object provider-id)
    (info (format "Deleting collection %s from client %s"
                  (pr-str concept-attribs) (:client-id request-context)))
    (generate-ingest-response headers (contextualize-warnings (ingest/delete-concept request-context concept-attribs)))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Granule API Functions
