Relocate the task query module and update its type and route imports to use the new `utils/queries` path.