But if you think a break in another domain would just magically make everything better, try becoming an expert in some obscure domain in some not-well reputed company. There most of your work will probably end up be muttering a few words in meetings and drinking coffee, with no one to tell you what to do as they dont really understand your domain.
There are a lot of codebases with really bad code that no one wants to take care of, so findind a gig like that would probably also pay you well.