рефакторинг safe_update, safe_destroy, safe_vote