Rewrite code for underscore methods and arguments