Replace contactform ActiveModel class with mail_form and DRY out pages_controller