Refactor projectile logic.