Convert Real_Path helper class to service.