Remove deprecated toggle function.