Change in ovirt-engine[master]: core: refactored 2 overgrown copy-pasted methods