refactor file system resource class