Refactor clearItem