Refactor insert/materialize node schemas.

fyi, we usually indent once from the "switch" to the actual statements under the case/default labels, not bothering to indent the case/default labels OR EVEN the braces that MIGHT accompany them. Yeah, so "default:" and "default: {" cause equal indents regardless of the fact that the latter begs a closing "}" -- so you often see the oddity of two identically indented "}" lines at the bottom of a switch.
I'm just saying. I'm not sure how I feel personally about the merits of that.