Condensing code using MVC