Split replaceSOAC for readability.