Refactor PatomicSchema based on Datomic attribute and schema research