extract dependency management into its own class

[#83883822]
Write unit test for dependencies class

[#83883822]