Remove references to unnecessary data.