Switching the reference mode of nodes from Shared to Reuse when documents are published are a common and important use case. It can be automated via trigger, but the necessary command to switch, im refmode, is not available in trigger API and needs to be called via java API from trigger, which is discouraged.
The request is to include "im refmode" in event trigger API.