Follow-up: Refactor the `unlink_project_forks_worker`
This is a follow-up to [the comment](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/210049#note_2868517989).
issue