"The oft-mocked "don't be evil" truly was the guiding principle of the company at the time"
A company with public shareholding loses the ability to be anything other than a generator of increasing shareholder value. That is its overt and stated purpose when it goes public. In return for investment, the company must ensure a return on that investment. It's not that you've sold out or sold your soul - it is simply the market and how it works.
If you want to try to be the nice guy then don't go public. "Don't be evil" is a lovely idea but it does not wash if you want lots of loverly shareholder cash. Stay private and raise capital via the old fashioned method of convincing some rich people to buy into your idea and become private shareholders.