Refactor task mass-update route