Returns instance of ``cls`` with attributed loaded
    from ``data`` dict.

def restore_model(cls, data):
    """Returns instance of ``cls`` with attributed loaded
    from ``data`` dict.
    """
    obj = cls()
    for field in data:
        setattr(obj, field, data[field][Field.VALUE])

    return obj