migration: split migration hooks out of QEMUFileOps