Update dependencies and remove unused ones.