Move task link method to `globalindex.Task`.