Convert things to a more controller-oriented framework.