Though this migration is totally incomplete, I have no better solution.