Reduce complexity of mess detector plugin execute method.