This is rather shaky, but we don't have many choices here except add a lot of awkward and unintuitive options. Try to deduce this from OpSource and fallback to heuristic.