Code cleanup on drivers/migration.py