let's make this a function that returns the StormRegistry. Would that work? These methods can still be inner functions defined as they are.