Refactor field setting