Port factors to Clojure