isolate dependencies to their class