Refactor function arguments.