can’t help to think I am doing something wrong
Nah, it’s not bad but might get awkward as the scope grows.
or that there is some other way to do this.
Consider the following:
It’s a Enumerator
| Soft Class Reference
map. Some good stuff on the Soft
topic:
If you do not care about the classes being loaded, make it a regular class reference.