WIP factorizing what has to be, and tuning centos build