What is the purpose of consolidating and codifying legislation