getItems Refactoring