Cleanup publisher factory
Add spec for publisher validation