Fixes #6182 - Dynflowized repository update

- [x] Dynflowize repository update
- [x] Fix old tests
- [x] Make new tests
If the distributor type ID is what is needed, why not make a function that returns that directly?