Using Gitlab's includes instead of duplicating the scripts that are required to create CI badges etc is a good practice.
This is an attempt to keep the pipelines DRY.
We may want to also refer to this step - please review and comment.