Refactoring the field encoder interface.