Wrap the model loading code into a helper that can be used by upstream tools.
Refs https://redmine.teklia.com/issues/9820