When multiple backports are concentrated into a single backport PR (a common
practice), the script would only resolve the first one, which was an annoying
shortcoming.
In addition to implementing the feature, take the opportunity to pay some
technical debt (put functions in alphabetical order, move code units into
dedicated functions/methods, etc.).