DRYing up some code with the hide_resources_on_delete method.