Refactor broker into publisher and subscriber

How would discard look like?