Elimination of higher type levels in definitions of primitive recursive functionals