reduce configuration complexity of menu tree handler.