To make it "new" or virgin they need to replace the CPU an the baseband, I'm not sure how they manage the secure enclave problem as the touch id is tied to the CPU.
Water tends to kill the PCB (due to corrosion), but all the individual chips will usually survive.
https://www.vice.com/en_us/article/gyakgw/the-prototype-dev-...