Move some functions to anonymous namespaces.