"refactoring to MVC"