Removes gem that aren't needed.