Factor GITLAB_SHELL_VERSION get method

Appeared 2x