For what it is worth, I went a different route on wiring the rack mounted lights than the OP. Since the stock headlight are so anemic, I elected to bypass them and use the stock switch and wiring.
This was accomplished by purchasing an electrical connector that mimicked the stock light connection and making up a small wiring harness to the new LED lights. This way if the LED lights failed the stock headlights could be plugged back in and work.
Part of this was motivated by running out of open switch blank in the stock panel.
2012 JD855D OPS Black Poly Roof, Deluxe Cargo Box, Front and Rear Protection, Power Lift, Front Hood Rack, Rear Screen (homemade), 800 Watt Inverter, 2500lb Winch installed in cargo bed, Front and Rear LED auxiliary lighting (4" square 27 watt), Front and Rear CV Guards, Koplin Side Mirrors