remove duplicate class registries.