Refactor and simplify SpecialApprovedRevs::getQueryInfo()