Strip unneeded imports