remove references to Devices and associated models. remove ResourceTypes.  Store panelTemplates as attributes of a serviceType.