Refactor multiple task update route