Reassuring when you have a Peugeot like I do!I have been told by several people that at least on Peugeot models their modules can only be programmed once from new, they cannot be reprogrammed to another vehicle.... substituting from other cars does not always work as they are usually paired to the car.
This means that it is necessary to replace all of the modules from the same donor car.
I'd assume that they are something like the old "programmable logic" modules once used in industry, in that they are programmed by "burning out" links of some kind. So once "done" that's it for that unit.
Still begs the question why, engine management apart, this stuff has to be coded at all. A set of lights on one vehicle is much like that on another after all. Built in obsolescence? Big profits from repairs? Who knows the reason.
Of course the other thing that begs a question is why they fail at all in any number. They should be bullet proof, and put somewhere out of harms way where they won't fill with water.