Refactoring item processing