(Sweden situation). There's recurring inspections of any vehicle, binannually or something maybe for motorcycles. The HD people I know/knew, would change back to the stock pipes for inspection, because the loud ones were not legal to use. Then just change back again.
Had a friend who put an Akrapovic on his MT-07 - DB killer is welded but once you drill through a small part on the weld you can remove it/put it back easily and the drill hole is covered by carbon shield so unless they disassemble the shield to check (and my friend had it like this for 5 years before selling IIRC) it was just pull out - put it back in for technical