health: Moving generic code out of cpu case
health: Moving generic code out of cpu case

When running the cpu benchmark, we do have a lot of code of parsing some
common statement in the job file.

Let's make this code generic to avoid any code duplication.

redhat-cip/edeploy,enovance/edeploy,redhat-cip/edeploy,lebauce/edeploy,enovance/edeploy,lebauce/edeploy,lebauce/edeploy,enovance/edeploy,lebauce/edeploy,redhat-cip/edeploy,enovance/edeploy,redhat-cip/edeploy