Refactor a code responsible for creating a CI/CD pipeline
We should refactor pipeline creation service, since it accumulated a lot of tech debt already.
We need to improve that to be able to implement other CI/CD related features like https://gitlab.com/gitlab-org/gitlab-ee/issues/3493.
Edited by Grzegorz Bizon