Move type declarations to the global scope.