is this a legitimate pattern? i can imagine it's safe because in order for this function to get called the whole module would have to be loaded. isn't there also `.__subclasses__()` though? And there's a `to_function()` in dimagi utils you can use as well.