multiple exchanges could sit on top of this software and in effect decentralize the exchanges.
This model leads to failure. Each exchange would have a small order book which would discourage anyone from using it, ensuring that liquidity never reaches critical mass. Small exchanges cannot afford security audits so they are guaranteed to be hacked. Small exchanges also cannot afford FinCEN compliance, so if they touch USD then they're illegal.