Removed a ton of code duplication in walking the AST nodes.