The foregoing provisions of this chapter concerning the required removal of nonconforming buildings and uses and the reconstruction of nonconforming buildings partially destroyed, shall not apply to public utility buildings and structures when such buildings and structures pertain directly to the rendering of the service or distribution such as power generating plants and electrical distribution substations, water wells and pumps, gas storage, metering and valve control stations. Nor shall anything in this chapter be construed or applied so as to prevent the expansion, modernization or replacement of such public utility buildings, structures, equipment and features as are used directly for the delivery of, or distribution of the service, provided the provisions of this section shall not exempt from the provisions covering nonconformity of such buildings, structures, or uses as do not immediately relate to the direct service by consumers, such as warehouses, storage yards and the like.