Remove nullability of the Model when invoking a template, to reduce problems with global variables.