Move static methods to the anonymous namespace.