You'll certainly have to create a `NullRepositorySafeHandle` type to cope with this constraint.