Refactoring: moving thingcontrol out of ThingAction execute method.