Doing cleanup of ast classes.