Extracting libraries/providers into scripts & making fully idemptotent