If you don't want to have multiple scripts then you have alternate solution
You can easily find the field as you have strField and strRecord
For example, if you can uniquely identify values so all field values in the data row are different:
strField = "B"
strRecord = "A;B;C"
intIndex = getIndex("B", "A;B;C")
1: strFieldName = "Account"
2: strFieldName = "Entity"
You can easily build getIndex with string operations.