Now that we have a navbar controller, it seems like this menu state logic may be better placed on the controller than in an extension method? Just a thought.