I was able to fix the problem by switching the removal logic to RibbonParticle emitter, which was able to get the passed variable.