Reorganizes code into packages.