cleanup / simplify errataProcess function