remove unnecessary statement
split out handlers for each ast node type