Convert field to getter