Small refactor to remove rubocop disable

What does this MR do and why?

Discussion: !119786 (comment 1380153447)

Small refactor to remove rubocop disable and add a comment about why the code is needed

Screenshots or screen recordings

N/A

How to set up and validate locally

specs only change

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading