Make queue and group into properly symbolic constatnts and move definitions to to joblib