Use `create(:ci_pipeline, project: project)`(Factory) instead of `project.pipelines.create` in spec

The following discussion from !13194 (merged) should be addressed:

  • @dosuken123 started a discussion:

    We should use create(ci_pipeline, ...) instead of project.pipelines.create. This is painful when we introduce a new validates present: true.

/cc @godfat