The main benefit for me is abstracting the function out of your code. It allows for more flexibility when testing applications. I also think there is some room to expand on the code, this being a v0.0.1 kind of thing.