Optionally override the repository tables when importing a template (see #6470)