Recycling li-ion is currently a booming business because it requires much less energy than processing raw ores - see Redwood Materials for more info.
Everyone takes these calculations into account because batteries come under intense scrutiny from people with ulterior motives.