If the teacher says "Race X is dumb and can not learn" then yes remove them as they are an educator and racist views on the ability to learn would impact their ability to teach
if the teacher says "We should have strong border controls" which is now viewed by the public as racist then no