Clean up particle animation code