Finalise the local repository refactor.