Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
- Creates a support/helper file and moves all the duplication defs into it