Plug like helpers for liveview

Is there some alternative to plug macros in liveview, for example:

plug EnsureRole, [:admin]

def mount(_...) do
  # mount called -> plug has passed?

It would also help with setting locale in each live view, related: How to handle localisation in live view?

Seems like the recommended way as of now is to extract the common logic into helpers,