Refactor insert/materialize node schemas.

This subtly changes something?