Make IDomainFactory generic (again).
Refactor DomainFactoryRegistry to accomodate the change.