Refactor node field loading and dumping.