I'm talking about these:
IUnifiedRepository repo = PentahoSystem.get(IUnifiedRepository.class);
and 
MondrianCatalogHelper mondrianCatalogService = (MondrianCatalogHelper) PentahoSystem.get(IMondrianCatalogService.class);