I'll play with it later tonight. I think best would be moving most of the logic from controls to the core library and having single helper with method for each control, so you would call from Razor page something like @Helpers.ControlsHelper.GetPageMenu().