Remove some unused variables
Wrap the compiled pattern matching into a pre_expr