Refactor category delete action of question.