With “Merge Selected”, you can select which items you want to consolidate, and with “Flatten Artwork” you will join all visible layers and items into a single layer. They will both maintain the existent hierarchy of the elements.