So either you design your service from the start with irreversible untraceability, privacy protection etc (and not storing your users data in plain text) or you implement it when asked legally.
The government overreach is something that should be solved by law and not by technological means.
I would try to leak about the whole story though.
Also a government have legitimate interests in gathering and analyzing data - there are real crimes being plotted, committed and investigated.
What get everyone so worked up these two days was not the fact that the government agencies have ways to obtain data, but that there is little transparency and the data requests are way too broad. A single defiant developer won't change that.
Nobody goes and says - give us power to do evil. A tool by itself is devoid of morality.