Update hfa_detect_one to use the new detect function API.