Refactor PublicationDatabase.