Remove call to ts() undefined function