Refactoring  of form methods.