refactor(TypeRobot): Move write() to WriteRobot.