Taking service_type if declared or the name