Rather than pass this down through several levels, why not just require it in the two modules that actually use it (`browseTreesMode` and `inlineEditForm`)?