Merge case function into removeNextLargerSuccessor