Refactor file.