ObjectsDiscard with arguments respects dependencies