Refactoring of Random Loot files