Move data gathering to before_script.