Formula 1 and its governing body, the FIA, have canceled Grand Prix races in Bahrain and Saudi Arabia on safety grounds related to the Iran war.