Refactor particle rendering.