Refactor actioncategory edit of question.