Logic to make TagReplacement handle a list of tags.