Convert network to Clojure maps
Move utilities to different file