Changing direct call of 'setup_foo' functions to delegated HOF 'setup foo'