The various dependency hosts had a lot of duplicated code. This commit refactors them to move this into the base class. PR Close #37075
The various dependency hosts had a lot of duplicated code. This commit refactors them to move this into the base class. PR Close #37075