Anything that is a field on your Dummy class will be registered.  So in your case you could just replace layers with self.layers and make sure to only initialize it once.  (you could also create nested lists instead of putting all layers from all models into a single list).