Move dependencies into head.