code simplification: rewrite of #470 implementation using a utility function
code simplification: rewrite of #470 implementation using a utility function

slonik-az/cython,andreasvc/cython,rguillebert/CythonCTypesBackend,hhsprings/cython,fabianrost84/cython,JelleZijlstra/cython,c-blake/cython,dahebolangkuan/cython,rguillebert/CythonCTypesBackend,c-blake/cython,roxyboy/cython,larsmans/cython,fperez/cython,dahebolangkuan/cython,ABcDexter/cython,rguillebert/CythonCTypesBackend,hpfem/cython,mrGeen/cython,larsmans/cython,ABcDexter/cython,roxyboy/cython,fperez/cython,hpfem/cython,acrispin/cython,ChristopherHogan/cython,hpfem/cython,hpfem/cython,da-woods/cython,c-blake/cython,acrispin/cython,mcanthony/cython,achernet/cython,andreasvc/cython,dahebolangkuan/cython,achernet/cython,hhsprings/cython,bzzzz/cython,roxyboy/cython,mrGeen/cython,fabianrost84/cython,encukou/cython,encukou/cython,slonik-az/cython,ChristopherHogan/cython,mrGeen/cython,ChristopherHogan/cython,hickford/cython,JelleZijlstra/cython,bzzzz/cython,encukou/cython,slonik-az/cython,JelleZijlstra/cython,JelleZijlstra/cython,larsmans/cython,mcanthony/cython,achernet/cython,scoder/cython,marscher/cython,larsmans/cython,encukou/cython,hhsprings/cython,mcanthony/cython,hpfem/cython,ABcDexter/cython,marscher/cython,hickford/cython,cython/cython,dahebolangkuan/cython,scoder/cython,hickford/cython,bzzzz/cython,slonik-az/cython,acrispin/cython,hhsprings/cython,madjar/cython,marscher/cython,hickford/cython,cython/cython,scoder/cython,madjar/cython,hickford/cython,ABcDexter/cython,scoder/cython,mcanthony/cython,da-woods/cython,andreasvc/cython,cython/cython,mrGeen/cython,c-blake/cython,da-woods/cython,marscher/cython,bzzzz/cython,rguillebert/CythonCTypesBackend,roxyboy/cython,madjar/cython,mcanthony/cython,c-blake/cython,mrGeen/cython,ABcDexter/cython,andreasvc/cython,larsmans/cython,acrispin/cython,achernet/cython,madjar/cython,encukou/cython,andreasvc/cython,roxyboy/cython,fabianrost84/cython,fperez/cython,marscher/cython,cython/cython,da-woods/cython,fperez/cython,dahebolangkuan/cython,slonik-az/cython,achernet/cython,fabianrost84/cython,fperez/cython,madjar/cython,fabianrost84/cython,hhsprings/cython,acrispin/cython,JelleZijlstra/cython