[PLAT-6736] Refactor of BasisFunctionGenerator