Refactor move in BST