Entropies and factorizations of topological Markov shifts