Use _.partial instead of deprecated function.