Code refactored for compactness and readability.
Code refactored for compactness and readability.

Refactored the code to enhance readability.

https://bugzilla.redhat.com/show_bug.cgi?id=1073083
https://github.com/ManageIQ/manageiq/issues/138#event-148990147

billfitzgerald0120/manageiq,matobet/manageiq,andyvesel/manageiq,aufi/manageiq,NickLaMuro/manageiq,lpichler/manageiq,chessbyte/manageiq,skateman/manageiq,romanblanco/manageiq,romaintb/manageiq,romanblanco/manageiq,mzazrivec/manageiq,NaNi-Z/manageiq,juliancheal/manageiq,skateman/manageiq,mkanoor/manageiq,romaintb/manageiq,gerikis/manageiq,mkanoor/manageiq,tinaafitz/manageiq,jrafanie/manageiq,lpichler/manageiq,jvlcek/manageiq,andyvesel/manageiq,tzumainn/manageiq,tzumainn/manageiq,jrafanie/manageiq,skateman/manageiq,KevinLoiseau/manageiq,juliancheal/manageiq,matobet/manageiq,agrare/manageiq,maas-ufcg/manageiq,romaintb/manageiq,jvlcek/manageiq,NaNi-Z/manageiq,ManageIQ/manageiq,durandom/manageiq,maas-ufcg/manageiq,billfitzgerald0120/manageiq,mkanoor/manageiq,israel-hdez/manageiq,borod108/manageiq,ManageIQ/manageiq,jameswnl/manageiq,fbladilo/manageiq,pkomanek/manageiq,chessbyte/manageiq,pkomanek/manageiq,syncrou/manageiq,d-m-u/manageiq,maas-ufcg/manageiq,ManageIQ/manageiq,branic/manageiq,kbrock/manageiq,juliancheal/manageiq,josejulio/manageiq,syncrou/manageiq,israel-hdez/manageiq,tinaafitz/manageiq,borod108/manageiq,durandom/manageiq,durandom/manageiq,josejulio/manageiq,gmcculloug/manageiq,jameswnl/manageiq,ailisp/manageiq,gerikis/manageiq,mresti/manageiq,mzazrivec/manageiq,jameswnl/manageiq,KevinLoiseau/manageiq,ailisp/manageiq,agrare/manageiq,gerikis/manageiq,durandom/manageiq,matobet/manageiq,borod108/manageiq,yaacov/manageiq,gerikis/manageiq,kbrock/manageiq,syncrou/manageiq,mzazrivec/manageiq,jrafanie/manageiq,lpichler/manageiq,billfitzgerald0120/manageiq,aufi/manageiq,hstastna/manageiq,aufi/manageiq,pkomanek/manageiq,hstastna/manageiq,NickLaMuro/manageiq,chessbyte/manageiq,billfitzgerald0120/manageiq,maas-ufcg/manageiq,fbladilo/manageiq,djberg96/manageiq,jvlcek/manageiq,ailisp/manageiq,syncrou/manageiq,ilackarms/manageiq,hstastna/manageiq,branic/manageiq,maas-ufcg/manageiq,romaintb/manageiq,aufi/manageiq,yaacov/manageiq,josejulio/manageiq,jameswnl/manageiq,gmcculloug/manageiq,gmcculloug/manageiq,djberg96/manageiq,mresti/manageiq,mresti/manageiq,skateman/manageiq,agrare/manageiq,mkanoor/manageiq,KevinLoiseau/manageiq,hstastna/manageiq,NickLaMuro/manageiq,josejulio/manageiq,jvlcek/manageiq,tinaafitz/manageiq,andyvesel/manageiq,kbrock/manageiq,ilackarms/manageiq,andyvesel/manageiq,jntullo/manageiq,jntullo/manageiq,yaacov/manageiq,chessbyte/manageiq,ailisp/manageiq,romaintb/manageiq,mfeifer/manageiq,jntullo/manageiq,mzazrivec/manageiq,maas-ufcg/manageiq,fbladilo/manageiq,NaNi-Z/manageiq,NaNi-Z/manageiq,yaacov/manageiq,ilackarms/manageiq,agrare/manageiq,djberg96/manageiq,lpichler/manageiq,matobet/manageiq,romaintb/manageiq,branic/manageiq,jntullo/manageiq,gmcculloug/manageiq,d-m-u/manageiq,juliancheal/manageiq,tinaafitz/manageiq,djberg96/manageiq,mfeifer/manageiq,israel-hdez/manageiq,tzumainn/manageiq,romanblanco/manageiq,kbrock/manageiq,KevinLoiseau/manageiq,branic/manageiq,ManageIQ/manageiq,mresti/manageiq,pkomanek/manageiq,borod108/manageiq,KevinLoiseau/manageiq,tzumainn/manageiq,d-m-u/manageiq,d-m-u/manageiq,ilackarms/manageiq,jrafanie/manageiq,israel-hdez/manageiq,romanblanco/manageiq,mfeifer/manageiq,NickLaMuro/manageiq,KevinLoiseau/manageiq,fbladilo/manageiq,mfeifer/manageiq