Catalyzes the conversion of heme O to heme A by two successive hydroxylations of the methyl group at C8. The first hydroxylation forms heme I, the second hydroxylation results in an unstable dihydroxymethyl group, which spontaneously dehydrates, resulting in the formyl group of heme A