DRY up form attribute doubles