Refactoring files factory