If you do joint the cable a small joint box would do you, just make sure it has enough terminals, and it must be located in a place where it is accessible due to it having screwed connections, like the floor space above. Best way if the switch has only one cable would be to rewire it back to the...