move consts to anonymous namespace rather than static member vars