Reorganization of parts of the code into domains (Types, Threading, Security, Transactions) #DDB-5