Refactor models-sync to share more code between Locmem and Dirty
progress