Refactor actor macro to declutter parsing state management.