It's needed for EntityType#safe_destroy to work. Normally rails has_many relationship would handle the child deletions, but since we need to do extra checking, we need custom code for what happens when you try to delete an entity_type that has entities.