Added ITypeFactory extension methods