WELL GEORGE SCOTT IS RIGHT ( OMG AGAIN )
But the code is king / Please see below:
5.1.10.11.3 Location of Piping.
5.1.10.11.3.1 Piping risers shall be permitted to be installed in pipe shafts if protected from physical damage, effects of excessive heat, corrosion, or contact with oil.
5.1.10.11.3.2 Piping shall not be installed in kitchens, elevator shafts, elevator machine rooms, areas with open flames, electrical service equipment over 600 volts, and areas prohibited under NFPA 70, National Electrical Code, except for the following locations: