Move SquaredDistance() into file's global scope.
Drop component type declaration from AttackNotification schema.