Refactor MagicParticleEffect.