Move all form-binding logic into class object.