This function existed to group fields together, but it had an issue and grouped them wrongly. This caused issues later in the check stage.