Refactor symtable and node walk.