These aren't equivalent...the old constant was a set; this is a hash.  You should tack on a `keys.to_set` to make it the same (both in the deprecation replacement and in the returned value).