Remove useless dependencies.