repository.h: drop extern from function declaration