Refactor rename file.