remove references to lazy, correct inappropriate use of non-reactive RepositoryHooksClient
refactor to remove duplication