Transform "layouts" config to "output_types" and define layouts inside each type.
Each type also has renderers and each renderer has assigns that are coming from the container and being made available in the template.