make a copy of the model to free up the potentially larger model used to
create the input model
Export labels for data repositories
Not safe to store raw model in an exception as it can contain sensitive
configuration data