MDL-29350 Prevent duplication of groupings when copying activities