def METHOD_NAME(self, instance):
    user = instance.user
    prev_state = user.insight_logs_serialized
    try:
        instance.delete()
    except UserNotificationPolicyCouldNotBeDeleted:
        raise BadRequest(detail="Can't delete last user notification policy")
    new_state = user.insight_logs_serialized
    write_resource_insight_log(
        instance=user,
        author=self.request.user,
        event=EntityEvent.UPDATED,
        prev_state=prev_state,
        new_state=new_state,
    )