Merge Subexpr Add and Mul exprs treatment into a single handler function.