[frontend] Clean teachers