#4139 MenuFactory now passed into the IMenuDefinition