do you mean this way,

(defn create [ent]
  (when-not (and (rest/is-headpin?) 
                 (instance? katello.Environment ent))
      (create* ent)))