Moved tech spec category deletion queries into a separate function and added a function to facilitate deleting tech spec data for deleted taxonomy terms.
Added a hook_cron() function to delete orphaned tech spec data.
Replaced the tech spec data deletion script with a call to the new tech spec category deletion function.
Added a hook_form_FORM_ID_alter function to handle taxonomy term deletion so that orphaned tech spec data gets deleted properly.