Handle random stuff in Core#extract_spans