Implement extractHelpers() function