Reintroduce separate published flag
The publishingMode
NONE
should be replaced with a separate flag. While
technically, the mode is not relevant when a group is not published,
with a separate flag the previous mode can be restored when toggling.