Refactor remote operation to rename folder