Remove $to deprecation warning