Add checks for IContextAwareDefaultFactory or IDefaultFactory
Add IDefaultFactory and interface checks for defaultFactory