datomic refactor