Extract the options and callback from a function's arguments easily