Simplify particlesFrom function