Refactor insert/materialize node schemas.

I've seen anonymous namespace once or twice before & never groked it. Why better than good ole' module "static" functions (of which I am a big fan)?

BTW, not sure that the Coding Standards mention this, but we tend not to indent within namespace.