Refine dependencies constraints