chore($parse): delegate the function bundling to the recursion function

Delegate the function building to the recursion function