Code factorisation for Pythran frontend