Refactor dict handling into function.
Refactor dict handling into function.

bgyori/indra,bgyori/indra,sorgerlab/belpy,pvtodorov/indra,bgyori/indra,pvtodorov/indra,johnbachman/indra,johnbachman/indra,johnbachman/indra,sorgerlab/indra,sorgerlab/indra,pvtodorov/indra,sorgerlab/belpy,johnbachman/belpy,johnbachman/belpy,pvtodorov/indra,sorgerlab/indra,sorgerlab/belpy,johnbachman/belpy