Simplify the macroexpand-ast function
Remove repetition