Factorization of Dirac operators on almost-regular fibrations of spin$^c$ manifolds