Move into an anonymous namespace and closer to where it's used.