Move UpdateRepo hook handlers into a dedicated class

Change-Id: I60ab88d3d43d9981ee71412a569bb21bfc2bbd30
Merge "Move UpdateRepo hook handlers into a dedicated class"