I have an unofficial policy of only working for small companies. I broke that rule once, and I was consistently miserable. Completing features consistently took 3x longer than they should have, and the team was too big to be able to make the necessary changes to fix the accumulating problems that caused it.
Additionally, people I hadn't met during the interviews but were in my direct chain of command were obnoxiously political. I am pretty much done with working at places where I dont have a direct line to the owners, and meet the owners before I accept the job.