A] 108.7 Unsafe mechanical systems.
A mechanical system that is unsafe, constitutes a fire or health hazard, or is otherwise dangerous to human life, as regulated by this code, is hereby declared as an unsafe mechanical system. Use of a mechanical system regulated by this code constituting a hazard to health, safety or welfare by reason of inadequate maintenance, dilapidation, fire hazard, disaster, damage or abandonment is hereby declared an unsafe use. Such unsafe equipment and appliances are hereby declared to be a public nuisance and shall be abated by repair, rehabilitation, demolition or removal.
It might be a stretch but if it needs to be taken out of service it is probably unsafe and beyond repair so demo the equipment so it cannot be put back in service or remove it. Now some older boilers are the size of a small locomotive engine and may even weigh more so it may be a case by case on how far you want to push it. Just make sure it can't be put back in service.