Refactor executeVoid for side-effect-free things into classes that can be used directly

Signed-off-by: Stefan Marr <git@stefan-marr.de>