Yes, that would be one solution, but you'd have to somehow enforce that governments do that or else local governments may continue with the status quo.
Also, there's the question of what to do with historical laws. For example, buildings being renovated sometimes have to follow the building codes corresponding to their original construction date. So the current laws that the publishers are trying to paywall may be relevant for another 100 years.