Remove dependencies while migration takes place.