If the user both chooses and exclude, unnecessary queries will call. It will always be necessary to call all templates/blueprints to check the templates that the user excludes.
It may be better to use a separate prop like
excludedTemplates or something like that. For ex:
templates prop will ignore if