Sort out problems with setupForPublish() and setupForConsume().