Factorize vocabulary factories registration