Migrate projectile to a class