Refactor task inputs.