Is there a particular reason this is broken out into two functions, rather than just one that always returns a dict?