Split off conditions into private functions clojure