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