For furniture, it is not replaced during restoration, if possible and the wood is not completely disintegrated. There are a number of products for impregnating wood to kill worms. The holes that remain after it are sanded on the surface with a suitable material. It all depends on the size of the damage.