Purge unnecessary dependencies.