Move before_script and script to files