Configure deprecation for haskey