A molecular mechanism for the enzymatic methylation of nitrogen atoms within peptide bonds