[TASK] Skip deleted references when checking for reference
[TASK] Cleanup migrateRelationsService