use update-in for ?assoc
refactor threading macros of assoc with update-in for the prepare step in the defrecords