oai-pmh: minor refactor