[* black] Gently pull up on the black and red wire coming from the battery to disconnect the battery from the motherboard.
+
[* black] Using a Spudger, gently pry the battery connector from it's socket on the motherboard. This will keep the Joy-Con from powering on during the repair.