Move private classes into anonymous namespaces.