Cleanup projectile code