The homeowner is responsible. Your responsibility as a professional plumber is to draw attention to the pre-existing non-compliance and the risk associated with it.