Say you had a folding bike with some sort of unique in-frame battery, the cells wore out or some became defective, so you decided to re-cell it. How would anybody know? If you did it badly and the battery caught fire, any evidence would be destroyed.
For Chris: Repairing batteries is not really an economic proposition. For all the standard types, you can buy a new one cheaper than the parts to re-cell it. Many of the others have comms and are locked to the bike. I'm guessing that the new regulations will either encourage that a lot more or make it mandatory. That only leaves a few obscure batteries on bikes that came and went. If you have such a battery on your bike, it's probably worth doing, but you need to think about the cost of the welder and the cell chargers/cycles. The cheap Amazon chargers don't work very well. You need a Sunto type with a transformer in it or better.
Rather than ask us cryptic questions, it would be better to say what you're thinking about doing, then we can advise properly.