Prevent duplicate generic types.