more generic duck-typed rack extractor