PIM-2303: Move array_keys to hydrator