Simplify pourbaix code somewhat.