[particles] code clean up.