Separate config and menus from main