move setup code into Form::Setup.