Refactor insert/materialize node schemas.

This sounds right (static for functions, anonymous namespace for classes). 
Paul learns something else new today.