Moves CI scripting logic to independent files