I have a motion sensing flood light mounted on the outside of my garage that I'm thinking is wired wrong. It looks like it's hardwired to an extension cord that is drilled through a stud and plugged in with the garage door opener. I'm finishing the inside of my garage with tin and I'd rather have the wire ran inside the wall, through the ceiling. On the outside of the garage the light is mounted center between the garage doors so I'd rather not move it and have to fix the siding but I'm not sure how to run wires around the studs. Also, is there supposed to be a box behind the light? I'm guessing since it's mounted so close to the studs it doesn't currently have one.
In this picture, the black wire running into the studs is what I need to move.
In this picture, the black wire running into the studs is what I need to move.