Naively extract local identifiers.