Can you use the fixturw as a JB or does the splice have to be done in a box?

What code rule?