I think when the law is not influenced by societal consensus it becomes a farce. In many ways the societal consensus on morality is law wheather it maintained by the state, vigilantes or in this case a legal fiction which is some combination of both.