remove_item method optimized.