Riboflavin is a precursor of flavin adenine D-nucleotide ( FAD ) , which is a coenzyme of methylene tetrahydrofolate reductase ( MTHFR ) , which is an important enzyme for remethylation of homocysteine .