'Create all navigation methods based on the PAGE_STRUCTURE.'

@classmethod
def _initialize_go_to_methods(cls):

    def rec(items, sub_menus):
        if isinstance(items, dict):
            for (sub_menu, sub_item) in items.items():
                rec(sub_item, (sub_menus + (sub_menu,)))
        elif isinstance(items, (list, tuple)):
            paths = ((sub_menus[:(-1)] + (menu_item,)) for menu_item in items)
            for path in paths:
                cls._create_go_to_method(path)
    rec(cls.CORE_PAGE_STRUCTURE, ())
    plugin_page_structure_strings = cls.CONFIG.plugin.plugin_page_structure
    for plugin_ps_string in plugin_page_structure_strings:
        plugin_page_structure = json.loads(plugin_ps_string)
        rec(plugin_page_structure, ())
