Merge :validate_index_on_create and :validate_index_on_update into single method