Refactor: Extract method for checking Elasticsearch enabled in all hooks
In https://gitlab.com/gitlab-org/gitlab/blob/2bfa0357327f7809c491b045b8526ce21747a0c1/ee/app/models/concerns/elastic/application_versioned_search.rb#L36 we can see all of these hooks are duplicating the same logic of if Gitlab::CurrentSettings.elasticsearch_indexing? && self.searchable?
.
We should DRY this up.