Refactor check_display_field() function - refs #2237