The script APIs have been deprecated long ago we can now remove them. This commit still keeps the parsing code since it might be used in a query that is still stuck in transaction log. This issue should be discussed elsewhere. Closes #11619