Move bulk of publisher code into own repo.