Code factorisation for yielders

pedantic remark : this could be a struct ;-)