Refacto common package

This pull request contains : 
common package refacto.