TRE: Move class into anonymous namespace.

While there shrink a dangerously large SmallPtrSet.