Moves helper functions out of scope, normalizes action string
Moves helper functions out of scope, normalizes action string

Signed-off-by: Braden O'Guinn <1c510017834381b35b46983838d2ef28fb3619d3@mutualmobile.com>

agco/elastic-harvesterjs