Regulation and technology have played a role, but the real force driving the industry’s environmental transformation is the enlighted consumer