Refactor to replace _.partial from bind.