refactor products_wanted in paxos state machine