I think there's an obvious answer to that question: don't focus so much on profit and ensure that the net benefit of your product for humanity is greater than it currently is.
Nah that's too obvious. MUST. MAKE. PROFIT. FOR. SHAREHOLDERS. The machine must march on and grow at all costs.
Unfortunately if we bring up 'ethics' we're the laughing stock of the room "aww he's so cute thinking about the good of humanity, what a nice guy. Anyway, as the adults were saying..."