Revert "Refactor rename file."

This reverts commit 9d8ecaf98d1dc0bba3273dd71ca340c867613bf9.