Cattle and pigs have different requirements for size and environment, so they have different requirements for pens. In addition, cattle are herbivorous ruminants, while pigs are omnivores, and their feeding is also different.
Solution: it should be columnar, circular and material culture. But doing so will greatly increase the labor force of farmers.