Remove redundant object creation.