Converted clojures of controller plugin and view helpers to factories