dry form_helper using meta programming.

not sure if this improves readability, but codeclimate should be happier...