Move hsm_key_list_get_by_repository() into the extension files for hsm_key.