Move helper functions to global namespace
Use global functions
Remove unnecessary test

This was just incomplete anyway.
Merge pull request #298 from WP-API/separate-helper-functions

Separate helper functions into global namespace.  Closes #298.