Re-parses beforeShowDay to convert from string to function.