remove unused dependencies and routes