extract dumper creations in separate methods