Refactoring instance variables in FileHandling