ir: Rename getInterface trait to getAttribute.