Here is the inside of a box’s roof. Note how the spacer also doubles up as a wire clamp.
I wanted to design the lighting so that the boxes can be swapped around. Also, should any of the electrical components fail later on, they can be easily taken out and replaced.