Reorganizes some library globals.