codify
1. [ verb ] (law) organize into a code or system, such as a body of law
Examples:

"Hamurabi codified the laws"

Related terms: systematize code