Removed old deprecated registries.

Also
- Removed some unused exceptions.
- Removed unused imports in some exceptions.