Minor refactoring in /users/:id/tasks routes