Remove redundant attribute lookup.