There is already an `assignElements` and a `assignButtonBar` that you can reuse probably.