This introduces no functional changes. The split out function will be reused in a later commit to additionally load commit data from the ostree-metadata branch. Signed-off-by: Philip Withnall <withnall@endlessm.com>