Refactor _builderFunc