Move SSA data structures into separate package