Bug 1162964 - Factor out pending/running job dict differences
Bug 1162964 - Factor out pending/running job dict differences

In a later commit we'll put these inside conditionals based on 'source',
so we can use the same method for both pending and running.

sylvestre/treeherder,rail/treeherder,akhileshpillai/treeherder,sylvestre/treeherder,adusca/treeherder,adusca/treeherder,adusca/treeherder,wlach/treeherder,moijes12/treeherder,adusca/treeherder,rail/treeherder,vaishalitekale/treeherder,sylvestre/treeherder,jgraham/treeherder,tojonmz/treeherder,avih/treeherder,KWierso/treeherder,tojonmz/treeherder,rail/treeherder,tojon/treeherder,parkouss/treeherder,KWierso/treeherder,tojon/treeherder,parkouss/treeherder,gbrmachado/treeherder,edmorley/treeherder,edmorley/treeherder,wlach/treeherder,adusca/treeherder,deathping1994/treeherder,tojonmz/treeherder,moijes12/treeherder,deathping1994/treeherder,kapy2010/treeherder,parkouss/treeherder,glenn124f/treeherder,akhileshpillai/treeherder,akhileshpillai/treeherder,vaishalitekale/treeherder,parkouss/treeherder,wlach/treeherder,glenn124f/treeherder,avih/treeherder,vaishalitekale/treeherder,vaishalitekale/treeherder,sylvestre/treeherder,jgraham/treeherder,akhileshpillai/treeherder,glenn124f/treeherder,moijes12/treeherder,glenn124f/treeherder,jgraham/treeherder,KWierso/treeherder,moijes12/treeherder,gbrmachado/treeherder,deathping1994/treeherder,parkouss/treeherder,jgraham/treeherder,moijes12/treeherder,tojonmz/treeherder,akhileshpillai/treeherder,wlach/treeherder,tojon/treeherder,tojonmz/treeherder,gbrmachado/treeherder,kapy2010/treeherder,kapy2010/treeherder,tojon/treeherder,wlach/treeherder,parkouss/treeherder,adusca/treeherder,deathping1994/treeherder,avih/treeherder,wlach/treeherder,avih/treeherder,gbrmachado/treeherder,gbrmachado/treeherder,kapy2010/treeherder,sylvestre/treeherder,kapy2010/treeherder,gbrmachado/treeherder,vaishalitekale/treeherder,deathping1994/treeherder,avih/treeherder,jgraham/treeherder,vaishalitekale/treeherder,glenn124f/treeherder,edmorley/treeherder,sylvestre/treeherder,glenn124f/treeherder,edmorley/treeherder,avih/treeherder,jgraham/treeherder,KWierso/treeherder,tojonmz/treeherder,deathping1994/treeherder,rail/treeherder,akhileshpillai/treeherder,rail/treeherder,moijes12/treeherder,rail/treeherder