Remove the old sparse_grad interface.