The building official shall refuse to issue any permit for the installation of any
plumbing work or water conditioning installation work in any building in which a plumbing
system has, in whole or in part, been installed contrary to this Code provisions in
effect at the time of such installation until such illegally installed plumbing shall
have been removed from it or brought into compliance with this Code and the state
plumbing code.