Refactored to flatten.
Abstacted callable Dependent class in dependencies.