Exporting extract_tactic function