Refactoring du trait ElasticSearchLock