Refactor migrator.up and clean up synch.