Refactoring the file creation process in ordre to prepare the ability to
reload an existing model file