The reason you hire software engineers on salary instead of just hiring contractors is because you need vessels to store knowledge in. That knowledge can be passed down and maintained with a relatively low rate of turnover, which is the opposite of "in 2 days we're replacing half our workforce".
If I got a business to a few million in recurring revenue it would be very tempting to slice expenses down to just maintenance mode, take a huge salary while riding it into the dirt for a few years and then retire.
The real thing is to treat a product as a sustaining engineer product, so minor new features, catering to the users you already have rather than trying to chase growth, etc.
But prospects point towards a recession, the boons of the pandemic are over, and interest rates aren't dirt low anymore. Which is why companies are indeed shifting down to "maintenance mode".
but there is no X, no mention of what X does in any Confluence page, and deleting it borks stuff badly. asking around and no one is sure what X is or does, and short of refactoring the code, no one has bothered to get rid of it.
a simple question of "wtf is X?" turns into multiple meetings, failed QA tests, general custerfuckery, all of which have a $$$ cost in hours wasted.
the people that knew are gone and DGAF, but would happily consult for a heafty fee.