The separation of law and morals is a necessary feature of a legal system.