Flatten on ASTs.