Actually there are two local functions with the same name, but different arguments. They are both used in the patch. There are two reasons why I copied them:
1. I decided to stick to the original TabChild code as much as possible, so future changes in TabChild could be easily mapped to TabChildHelper
2. the functions actually make the code cleaner