Refactored 'sub-menu- component.