Extract a function collect_all_attrs()