Refactor Hook

Refactor RepositoryHook to use the new ChangesetService