It's kind of funny because I am actively working on a slimmer, more focused replacement for an extremely heavy dependency that has mode features that I need and it also saves me a lot of working ckearing the licensing of numerous transitive dependencies.
Developing my own custom replacement is exactly the case you describe. I don't think I would have done it without LLM help.