It looks like that part was creating attribute references for "other" attributes if the block contained any other attributes besides the "NUMBER" attribute.
I have not tested but you should see a difference by testing with drawing attached since I added two attributes("OTHER" & "OTHER2") to bubble block definition.
You should see two extra attributes using snippet below, but after removing snippet below it should just add the number attribute.