subtype should not include the given type
ContextFactory utility class