Looking at the datasheet of this component, can you group together pins by their functions? for example for Power, VDD, 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 the ADXL345 pins into unique functional groups with no duplicated pins: Power, Ground, Communication/Serial Interface, Interrupt Outputs, Reserved, and No Connect. Full table is in the ADXL345BCCZ-RL Pin Function Groups project file.