Formylation of octabase prior to cyclization avoids ether cleavage as a side reaction and yields higher than without N-substitution or N-methylation. In this example, the purification was done by formation of a brucine salt.
This process has also been patented by Roche.