Refactoring the Add flave view controller.