(bug 5292) Refactor ESN Reply migration code

La la la!

( not using migrate_prop_to_esn because one of these isn't really a prop, and migrate_prop_to_esn can't currently do args and I'm not bothered to modify it )