[PLAT-6736] unfinished refactor of BasisFunctionGenerator