I’m not sure where you are but in MN we had to install battery powered cheapos instead of the hardwired (and much better) smoke detectors.
But I’m guessing these are old commercial systems and should be updated to modern building code.
OP could always ask their local Fire Department/Marshal. These kinds of inspections are part of their job (and they won’t necessarily fuck anyone with code violations…)