Remove extra gems.