I found I was the most productive when I was in a small office with 2-3 other developers, with a door we could close. Everyone was setup this way, and people ended up decorating each of their rooms and every room had a "theme" (ours was called the lounge). This degree of personalization brought me closer to my co-workers whom I shared the office with, and as a result we worked better together. In the afternoons, we'd…
I always just through it was the growing company that lead to the change, but now that you mentioned your experience and I reflect on mine, I think that little 3 man shared off might have been the key to all of the awesomeness and fond memories of my time with that company.