This function should be removed. It does not appear to be called anywhere in the repository and looks like it was copied from datazilla. The keys `testrun` and `build` don't have applications that I know of in treeherder.