Reverting back to using object dependencies instead of class dependencies

As explained by Joe, since both the dependencies mean different things, hence reverting this change.