unify topic partition path constructing; refactoring and better code reuse