に[先立「さきだ」]って/に[先立「さきだ」]ち/に[先立「さきだ」]つ => Before A occurs/takes place N2
Time, Situation
を[機「き」]に => Use A as an opportunity N1
Time, Situation
を[契機「けいき」] => As a good opportunity A, (do) B N2
Information, Report