Remove deprecated compiler.ast.flatten