Giant refactoration and upgrading of the particle system