Refactoring: renamed package
menus: guarantee no separator at start or end and no two consecutive separators. don't show submenu if it has no contributions.