Issue #2259813 by m1r1k: Get rid of removed menu_tree* and menu_build* function.