It's a re-wiring project for sure.
Forget about what routes they chose - they did that for speed of manufacture and ran wires where it is no longer convenient to access now that it is assembled.
Instead, cut and pull those wires, choose your own route from point A to B, and fish the wire through. This also allows you the opportunity to debur anything you can reach, and apply a little electrician's tape at holes where it will help. Pro tip: don't use the frame for ground. Run a separate ground wire to each light all the way back to a junction box. This will reduce future problems and also isolate them to a single light.
DAMHIK
Forget about what routes they chose - they did that for speed of manufacture and ran wires where it is no longer convenient to access now that it is assembled.
Instead, cut and pull those wires, choose your own route from point A to B, and fish the wire through. This also allows you the opportunity to debur anything you can reach, and apply a little electrician's tape at holes where it will help. Pro tip: don't use the frame for ground. Run a separate ground wire to each light all the way back to a junction box. This will reduce future problems and also isolate them to a single light.
DAMHIK