Consolidated all_structures and prefix_structures