refactor with COgipixCommonBundle