remove legacy grape function