market: reduce coupling between market and DHT implementation.