Make DirectFormattingController and SessionController 100% typed.