Code cleaned up in RoutedHttpService