Guard against creation of multiple identifiers of the same class from templates on a single publication