Convert deprecated Collection.getByCid calls to Collection.get calls