This situation is what change orders were created for!

The solution is simple: You need to add over-current protection at some point that will let you meet the 25 ft rule. Or, even, the 10 ft rule. A disconnect with fuses would accomplish this.