The legal system and the autonomy of the law: a perspective from legal history