Refactor 'binary tree in-order traversal iterative solution'.