Reworks shared attrib with attr_define