lua: simplify wrap_script helper method

Each Formula carries its own wrap_script method, so there's no
need to parameterize each copy so that they are identical... we
can simplify the method signature and all call sites by factoring
away the arguments and pushing them into the method body in each
case.