Refactor rename local files