Moved incantation to update git submodules into a function.