Perhaps the market for this type of software is going away, as you described. In that case, focus on getting as much revenue out of it with as little work as possible, while moving on to other things. No point in fighting an uphill battle that'll get harder with the years if the market is indeed going away.