AI changes the economics of software rewrites