I really like the framing of legacy code as "money making code".
Presumably if it wasn't making money (possibly indirectly), it would have been deleted!
I used to think repositories with multiple packages were a niche feature (cargo workspaces in Rust, Lerna in JS), but they're really valuable for the ecosystem.
Large projects will naturally develop mature, reusable code. Making it easy to release their helpers is worthwhile.