Move getPartitionValueFromString method to class utils and add loader parameter