Refactoring of file updater.