Create models directly in migration specs instead of using factories
requested to merge bvl-fix-factories-in-migrations into 3844-add-option-to-projects-to-only-import-protected-branches
@tiagonbotelho Your assumption in https://canary.gitlab.com/gitlab-org/gitlab-ee/merge_requests/3326#note_48954717 seems right.
This could be a solution.