LPS-39594 Perform the same refactoring for portlet level last-publish-date