This refactor probably wouldn't be worth the effort, though I am still curious about whether we did find a good way to iterate over a dictionary by keys pulled from a separate list.