Made ad migration dependent on core migration.