Moved code from publizon module to base, as it made more sense to put there. REOL-28