Move generator case to provider register method.
Use __dict__ with style, i.e. don't.