remove unused field and injected object