Tidy up unpublishing factory.