refactor tractor