Remove duplication in some TR prims.