Refactor item_set_closure

Inline unnecessary  function
Bump bandit