Getting rid of unneeded gems