[Core/Collections] Loosened the visibility of extractItems() to make it easier to override replace().