Remove references to menuIgnoreDepth

It's use is unclear. Removing references to it makes things work better