Refactor server methods of usergroups editor.