The replace and delete methods on a DependencyInjection object returns a DependencyInjection object with modified data.