Prevent references from being deleted if there are dependent objects