Ugh, SonarQube with the cognitive complexity check.
"Instead of having 50 lines where all logic is right here, I'mma need you to break it up into 10 separate functions so it's a massive pain in the ass to figure out what the fuck is going on"
I understand the reasoning but sometimes it's way more confusing to split up complex logic instead of just having it all in one place.