This fix my use case (applying multiple times on the same element with updated comment) but broke multiple events in the same page.

When applying twice the formater the live events conflict. This prevent it by
removing it before creating the new one. This patch broke the capability of
applying the formater with collapse on two different objects in the same page.