Fix law of demeter. Remove unused templates. Replace instance variable with local variable.
Simplify render in controllers.