It is both, but the concentration of the issue is within factory farming (at least in the US). Moreover, we house these animals in perfect breeding grounds for bacterial mutation and reproduction - tightly packed in dark warehouses. So the surviving bacteria, i.e. superbugs, are in their ultimate environment. Scary.