         
         if let selectedLayer = selectedLayer {
             let item = itemInSuperview()
-            let context = contextForItem(item)
 
             let points = Points(
-                context: context,
                 item: item,
                 atIndex: selectedSegmentioIndex,
                 allItems: segmentioItems,

    internal struct Points {
        var startPoint: CGPoint
        var endPoint: CGPoint
    }
    
    internal struct Context {
        var isFirstCell: Bool
        var isLastCell: Bool
        var isLastOrPrelastVisibleCell: Bool
        var isFirstOrSecondVisibleCell: Bool
        var isFirstIndex: Bool
    }
    
    internal struct ItemInSuperview {

        shapeLayer.path = shapeLayerPath.cgPath
    }
    
    // MARK: - Item in superview
    
    fileprivate func itemInSuperview(ratio: CGFloat = 1) -> ItemInSuperview {
