Code factorisation for yielders
Merge pull request #375 from pbrunet/mrproper/yielder

Code factorisation for yielders