Law is a bit like programming. Imagine reviewing commits to a vast codebase on a tight deadline.
This feature seems to belong in a different package. It should be factored out. But the code builds, and rejecting the whole pull request would delay shipment.
I sometimes wonder what would happen if Bill Gates and say Warren Buffet spent a ridiculous amound of money on lobbying, in order to drastically change the political landscape.
What you (or any of us) think about it in moral or ethic terms, is irrelevant.