I see now. Here is a work item. But not sure how to implement it better.
Right now we invoke it in the root cshtml file (general solution for all pages). And the only solution I can think about is to pass a page name (string) which will be the same for all. For example, "OnePageCheckout". Like we do with "AppendPageCssClassParts" or "AddTitleParts" method for each page individually.