Extract TypeFactory.