Simplify _get_action function
Remove redundant entries and spaces
Merge pull request #6 from fuzzysource/functional

Simplify _get_action()