Refactoring for the Django population of texts from multiple XML databases