I wish I had a useful, repeatable answer here, but in my case it was basically all luck. A friend/ex-colleague had been recruiting me for years, but it was never the right time to take the plunge. Finally, everything aligned - the role became remote-only and stopped requiring travel (thanks to COVID), and I completely burnt out at my job. It was a good time to test the waters, and here I am, still doing it almost two years later.