Factor out make_anonymous_struct()