migration: simplify exec migration functions