Elastic: Small code cleanup

Authored by machniak on Nov 21 2018, 12:49 PM.