Extract 'no keyword found' logic to _raise_no_keyword_found()