This is taking a shot at Java, and a pretty old "joke" but I've heard of this actually being a thing out in the wild:
https://stevenheidel.medium.com/a-factoryfactoryfactory-in-p...
https://stevenheidel.medium.com/a-factoryfactoryfactory-in-p...
Although, frankly speaking, Java libraries are still the most convenient to include/extend than most other compiled languages I've seen so far. Probably because of that culture of over-engineering for abstraction/extensibility.