Moved ui menu functions to their own namespace lab.ui.menu.