I've been a PM, and also worked with software on a more abstract level (enterprise architecture). Came back to coding, and am happy with it. I much prefer poorly documented franeworks and half-baked tools to the day-to-day nonsense of politics that is inherent to working in higher-level role in any bigger organisation.