     return abs(proposed - previous) <= increment && abs(previous - to) <= increment
   }
 }
-
-class BakerAnimation: CAKeyframeAnimation {
-  var fromValue: NSValue = 0
-  var toValue: NSValue = 0
-  var timing: CFTimeInterval = 0
-
-  override init() {
-    super.init()
-  }
-
-  required init?(coder aDecoder: NSCoder) {
-    fatalError("init(coder:) has not been implemented")
-  }
-}


      animation.values = Baker.animateSpring(property, finalValue: to, layer: layer, type: type)
      animation.duration = Baker.springTiming
      
      return animation
  }


  // MARK: - Bezier animations

  static func configureBezierAnimation(property: Animation.Property, bezierPoints: [Float], duration: NSTimeInterval) -> CAKeyframeAnimation {
    let animation = CAKeyframeAnimation(keyPath: property.rawValue)
    animation.keyTimes = [0, duration]
    animation.duration = duration
    animation.removedOnCompletion = false
