Engineering of a protein with cyclooxygenase and prostacyclin synthase activities that converts arachidonic acid to prostacyclin.