Clean up dead or useless derivative function calls