Simplify a bit teacher registration (and rm code added by accident)

[#75226372]