Refactor ContactForm.