Move struct manipulation code out of confparse.c

After I finish the variable-manipulation code in #30864 (moved), it's time to work on moving the struct-manipulation code out of confparse.c