Fix class based replacers.