I have 3 objects, each one is an instance of 3 other classes which inherits or extends the same super class. All 3 objects have same functions() like say ViewA, ViewB, ViewC, ViewD.
My question is How to arrange the Menu hierarchy in UI for better Usability. Should it be like in image given below, where each function is a submenu of the main object menu.

Or
Should I use Menu as shown in below image where each function is a main menu. For Example when user opens ViewA he can Filter the displayed items according to Obj1, Obj2, Obj3 or Obj1 and obj2 combined. In below menu Obj1Menu, Obj2menu,Obj3Menu are used just to manage objects.

Let me know if you didn't understand my question.