cpp: callbacks: Move constant strings out of header into anonymous namespace