Split all the code into packages.