Factorize code in integration test verify scripts