def _compile_property_reference(prop):
    """Find the correct reference on the input feature"""
    if prop == '$type':
        return 'f.get("geometry").get("type")'
    elif prop == '$id':
        return 'f.get("id")'
    return 'p.get("{}")'.format(prop)
