move FieldGenerator to common