visible_fields: minor refactoring.