It is, but I don't see problem to extract to a module.

I'm removing because helpers are related to the HTML attributes and this one is not related to any attribute at all.