Looking at the datasheet of this component, can you group together pins by their functions? for example for Power, 3v3, gnd_1 gnd_2 etc
NOTE: If you group them, can you not add the same pin if you already added them in a group? You should know which pin function is common for its function
I grouped every current Arduino Mega2560 terminal into one primary function group only, using the datasheet pin functions and avoiding duplicate pin assignments. Full grouping is in the Arduino Mega2560 Pin Function Groups project file.