remove duplicated code

This is a test PR for a batch update on all the plugins using the `logstash-devutils` gem