Refactoring generation of scielo and pmc packages of XML files in order to use them in Markup and XML converter and standalone