iotests: Move migration helpers to iotests.py