'Create registration resource from contact details.'

@classmethod
def from_data(cls, phone=None, email=None, **kwargs):

    details = list(kwargs.pop('contact', ()))
    if (phone is not None):
        details.append((cls.phone_prefix + phone))
    if (email is not None):
        details.append((cls.email_prefix + email))
    kwargs['contact'] = tuple(details)
    return cls(**kwargs)
