Factorize code for ObjectEntry vector reading