Can you put the defaulted lang in options in moment().format, so you don't need the defaulting logic twice.