Move oai_dc_reader() into it's own module and move nested functions out for unit testing