Refactor 'converted sorted list to binary search tree'.