Fixed #22970 -- Add correct dependency on existing migrated app