def _key_list_to_dict(key_list):
    """Convert list of keys to dict keyed by stat key name."""
    key_dict = {}
    for key in key_list:
        key_name = key['key']
        key_dict[key_name] = key
    return key_dict