Refactoring VisitController.groovy

Changing method save, extracting it into 3 methods.