   "Marks the given collection as rebalancing in the index set."
   [context index-set-id concept-id]
   (let [index-set (get-index-set context index-set-id)
-        ;; Add the collection to the list of rebalancing collections. Also does validation.
-        index-set (update-in index-set [:index-set :granule :rebalancing-collections]
-                   add-rebalancing-collection concept-id)
+        ;; Add the collection to the list of rebalancing collections. Also
+        ;; does validation.
+        index-set (update-in
+                    index-set
+                    [:index-set :granule :rebalancing-collections]
+                    add-rebalancing-collection concept-id)
         index-set (add-new-granule-index index-set concept-id)]
 
-    ;; Update the index set. This will create the new collection indexes as needed.
+    ;; Update the index set. This will create the new collection indexes as
+    ;; needed.
     (update-index-set context index-set)))
 
 (defn finalize-collection-rebalancing
   "Removes the collection from the list of rebalancing collections"
   [context index-set-id concept-id]
   (let [index-set (get-index-set context index-set-id)
-        ;; Remove the collection from the list of rebalancing collections. Also does validation.
-        index-set (update-in index-set [:index-set :granule :rebalancing-collections]
-                   remove-rebalancing-collection concept-id)]
+        ;; Remove the collection from the list of rebalancing collections.
+        ;; Also does validation.
+        index-set (update-in
+                    index-set
+                    [:index-set :granule :rebalancing-collections]
+                    remove-rebalancing-collection
+                    concept-id)]
     (update-index-set context index-set)))
 
 (defn reset
-  "Put elastic in a clean state after deleting indices associated with index-sets and index-set docs."
+  "Put elastic in a clean state after deleting indices associated with index-
+  sets and index-set docs."
   [context]
   (let [{:keys [index-name mapping]} es-config/idx-cfg-for-index-sets
         idx-mapping-type (first (keys mapping))
-        index-set-ids (map #(first %) (es/get-index-set-ids (context->es-store context) index-name idx-mapping-type))]
+        index-set-ids (map
+                        first
+                        (es/get-index-set-ids
+                          (context->es-store context)
+                          index-name
+                          idx-mapping-type))]
     ;; delete indices assoc with index-set
     (doseq [id index-set-ids]
       (delete-index-set context (str id)))))

           {(keyword index-name) (gen-valid-index-name prefix-id index-name)})))

(defn prune-index-set
  "Returns the index set with only the id, name, and a map of concept types to the index name map."
  [index-set]
  (let [prefix (:id index-set)]
    {:id (:id index-set)

    (index-requested-index-set context index-set)))

(defn delete-index-set
  "Delete all indices having 'id_' as the prefix in the elastic, followed by
  index-set doc delete"
  [context index-set-id]
  (let [index-names (get-index-names (get-index-set context index-set-id))
        {:keys [index-name mapping]} es-config/idx-cfg-for-index-sets
