Make less TreeItemView classes

Classes are kept permanently in subclasses-property of each class and thus creating new unnecessary classes causes just unnecessary memory usage.