Refactoring form data to external JSON file.