def _get_address_line(address_data):
    """Extract address line fields from streetAddress field"""

    street_address = address_data.get('streetAddress', {})
    if isinstance(street_address, dict):
        return {
            'address_line_1': street_address.get('line1', ''),
            'address_line_2': street_address.get('line2', ''),
        }
    else:
        return {
            'address_line_1': '',
            'address_line_2': '',
        }