PLAT-6720 Add ComponentFactory for setting Analytics environment