Files repository plugin refactoring