If AA has to issue the ticket, there is no possible way for them to 'delete' the segment. Each airport has to have a code ,and basically JFK and LGA occupy two codes, hence two segments. So if you exceed, that's because each airport requires a seperate booking segment.
Can you not fly ORD-MAD instead of going via NYC?