Change in ovirt-engine[ovirt-engine-3.6]: core:refactor: Refactor code to be reused in future patch