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?
end

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, https://github.com/phoenixframework/phoenix_live_view/blob/5a4e7f66c455815d020f831885ad9c3ec1fdfe04/lib/phoenix_live_view.ex#L787