Remove duplicate code
This was added in !4860 (merged), but somehow the code was was already present in 9c000451, causing https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/56081024 to fail.
This was added in !4860 (merged), but somehow the code was was already present in 9c000451, causing https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/56081024 to fail.