Refactor teacher specs.