factor out function
Merge branch 'master' of github.com:maxf/historique