The requirement comes from the mechanical code. In the IMC it is found in section 606. There are a couple of exceptions there that will often apply. There will be a simular section in the UMC.