Worked on a product that was written in a legacy technology and built over two decades. Company does not want to invest further in the product and just want to support existing clients that had done lot of customization on top of existing codebase. New players have come into the market and eaten away the market share of the category the product competes in. Its a slow death for the product now. Management feels that it is better to buy a new product built by another company rather than building the same product in-house with no guarantee of returns.