Start the migration only when really necessary