Unregister some providers before registering them to prevent ClassNotFound type exceptions in some containers