During [a recent review](https://github.com/elastic/kibana/pull/68005), it [was noted](https://github.com/elastic/kibana/pull/68005#discussion_r435239081) that we should extract Elasticsearch field names to a constants file, rather than using them directly in code. This is a practice adopted by other teams, and would help keep our codebase cleaner.
During a recent review, it was noted that we should extract Elasticsearch field names to a constants file, rather than using them directly in code.
This is a practice adopted by other teams, and would help keep our codebase cleaner.