moved common methods to FormComponentFactory.prototype