Nice idea, bad name;o)  Suggest `instantiateClassWithConfig` or `newInstanceWithConfig`.

Looks pretty generic too; make static and move to one of the "helpful" locations?