Well building a battery factory in EUs worst CO2 polluter kinda makes no sense from an environmental viewpoint. Better to build it in Sweden or France which have a heavy Nuclear/Hydro mix in their grid.
That is a bit of a strawman argument as then you should also argue for stopping all industry in Germany that has a heavy use of electricity (which battery manufacturing doesn't really compared to other things like aluminium smeltering).
Germany is moving to more renewable sources of energy and Tesla also plans to put solar panels on the rooves of its buildings.
Contributing to the greenhouse effect, yes, but that's never been considered exactly "pollution". (Unless the darn kids have fucked up language again. Geroffmyfuckinglawn.)