split util files

Also found the exact function I would have needed for !5573 (merged). It's just not documented anywhere.

Merge request reports

Loading