Make .type intrinsic to the layout object, not a tack on in the AppBar.layout setter.