[core] Replaced canBeDeleted with getDeletionBlockers