Thanks Dave, now it makes sense.
I agree with the others, there is some pretty crummy workmanship there.
We don't use the bracket boxes with 1/2 KO's here very often, but I would never think to surface mount one like that. It looks totally hack.
And in that last pic, is that 2 white wires feeding that light?
At least with the pipe, it's easy to fix.
Peter