Strip unused dependencies