Refactored update hook as well as fixed a typo. GitlabConfig is now only called once in the update hook.