The modern way to do struct AST parsing in proc macros is to use darling.
The code should be revisited, possibly refactured and changed to use darling wherever possible.