Deleted the remaining references to pruned species, specifically from TemplateReaction objects