Extract location repository to infrastructure.