Some of what you’re saying is likely true but quality is something that will never be optional. There is quantitative data suggest that LLMs perform better on higher quality code base which makes sense. Code that is well organized and coherent will make better use of the context window.
Software refactoring and tech debt is absolutely where LLMs will shine as is evidenced by the Bun rewrite.