Set visit_flat_keys as protected