removes path for rest mock services