Because the two kinds of pipelines were very similar, I used Jsonnet to factorise the definitions. This means I have to switch the configuration file in my settings, and enable Jsonnet files.