Issue #2232877: Avoid processing menu items multiple times.