I see. I didn't unfold the code. 
That's a matter of taste actually. IMO, I don't think it represents a large duplication and it would gain in readability. Let's wait @emmanuelle and @stefanv points of view. :-)