Some separation into something like view and controller.