I haven't talked myself out of a job, the market has said it doesn't need my experience because I can't talk myself in to a new type of job (of being what I consider to be a liar or a grifter). That's not a job that I want, unfortunately my sense of professional ethics is too strong.
But also, yes I have done enough Legacy Code work in my career that I don't think I want to deal with "Legacy Code as a Service" machines and companies spraying entire geological layers of Legacy Code as fast as they can across as much of the company as they can. That's a sustainability crisis that doesn't sound like it is going to be fun to maintain in 3 years from now (or fewer) when companies realize what they encouraged to happen and how much "new" code they need archaeologists for and have few to no maps of.