Refactor divisions and terms treeview uses