its fiddly, but generally you tie string, fishing line, wire or surgical tubing around the pot shafts before feeding them out the f-hole of bridge pickup cavity.
after that, whatever you tied to the pots can be used to pull them back into place.... and its all a lot harder to get right than that made it sound