@outie
There might also be good reasons why its there.
Contract of purchase that maintenance has to be proformed by train manufacturer. Ie they might have paid less upfront as the profit is from the later maintenance over x years of contract.
Critical safety systems such as Automatic Train Control that should only be touched by suitably qualified staff. Mess with this and the safety certification goes, which might mean the train isn't allowed to run on the network, not have insurance or mass fatalities.
@SuperMoosie
This makes no sense. If this is put in place because of contract violations, the manufacturer can simply sue.
If the 3rd party workshop is unequipped to deal with the safety systems, which might mean loosing safety certification, then that is for actual authorities to decide and enforce