This seems to me like it would be easier than having it create a greenfield project. The legacy code tells the AI the needed functionality so I would think in the near future an AI could rewrite something in a more concise way with the same style throughout, even adding useful comments and docstrings.