Reduce the size of the bindings by factoring error case out into its own function
Created attachment 231984 [details] Patch
Comment on attachment 231984 [details] Patch r=me