When publishing an object, it is not only put into the list of published
objects but also removed from the list of regular objects. This way, a
published object can be garbage collected.