Use anonymous namespace for helper functions