Consolidated generateFormItems and ..FormItem