ciao-controller: Factorize the flavor details building routine
ciao-controller: Factorize the flavor details building routine

We will need it for implementing /v2.1/{tenant}/flavors/details.

Signed-off-by: Samuel Ortiz <0ba86cb3f08bbb861958e54bd3438887adb4263c@linux.intel.com>

leoswaldo/ciao,jorgevgut/ciao,wcwxyz/ciao,obedmr/ciao,obedmr/ciao,mrkz/ciao,mrkz/ciao,matthewrsj/ciao,erick0z/ciao,ciao-project/ciao,markdryan/ciao,jorgevgut/ciao,mrkz/ciao,jorgevgut/ciao,mcastelino/ciao,mcastelino/ciao,wcwxyz/ciao,tpepper/ciao,markdryan/ciao,leoswaldo/ciao,erick0z/ciao,rbradford/ciao,leoswaldo/ciao,kaccardi/ciao,tpepper/ciao,kaccardi/ciao,mcastelino/ciao,matthewrsj/ciao,erick0z/ciao,obedmr/ciao,matthewrsj/ciao,ciao-project/ciao,01org/ciao,tpepper/ciao,01org/ciao,rbradford/ciao,wcwxyz/ciao