metadata: Do not remove all global classes

TODO: For now Global and Constants for plugins are moved into
their own classes because the code generator overrides files which
already exists.