simplify the formats of ast expressions.