Refactored save module to update publication object