I have the additional problem of wanting to provide an app for two different
backends, so custom hooks in UI components would not work (hooks are imported
from a static module).
Maybe: controller uses custom cloud specific hook and renders stateless UI
component.