Change `handle_rename` to accept `IsRename` and you can get rid of this case statement here.