deprecating duplicated function in DataMartService