Remove entries only if in state 'in_shelf' or 'rejected'. Fixes #16.