Reduced iterative code in InFileRepository.