Remove unused dependencies and update composer