I used a PVC electrical junction box from Home Depot.
Cantex 4 in. x 4 in. x 2 in. Junction Box R5133705 - The Home Depot
I cut the outer mounting tabs off and drilled the bolt pattern out in the bottom to match the existing mounting holes. No cutting or drilling needed in the bed.
I used...