Removes old deps and pins the rest.