Refine the dependencies