Manufacturing processes for APIs