Move sharing message management into a lib

2 jobs for preprod in 2 minutes and 18 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #2753
preprod
unit tests

00:01:10

 
  Deploy
passed #2754
preprod
deploy preprod

00:01:07