Move the config_* methods into a separate source,

and remove some unnecessary checks while we're at it.
.gitlab-ci.yml not found in this commit