Clean up the macroexpand middleware