Implement recursive spec creation for structures