add replace-class-with-base-template-spec into delta loop