@staticmethod
def _safe_type(raw_type):
    """Ensure that the provided type is a known type, defaulting to text"""
    if (raw_type == 'text' or raw_type == 'number' or raw_type ==
        'password' or raw_type == 'choice' or raw_type == 'file'):
        return raw_type
    else:
        return 'text'
