The fees set out in section 22-121(1) shall apply to permits required to be obtained by virtue of the provisions of any of the standard published codes adopted by reference in section 22-61, but the costs of any portion of the work shall be counted only once in determining the amount of the required fee regardless of the fact that such work might otherwise be subject to a fee under more than one of such adopted codes. Notwithstanding any other section of this article or any provision of any of such standard codes which may provide to the contrary, the contractor with the ultimate responsibility for the work shall obtain the permit and pay the fee required under this division for the work, regardless of the fact that a subcontractor may actually perform the work.