Refactored so paths have their own repository and service.