Refactors PubSub/Broker.
Refactors TopicHandlerCompilerPass
Refactors PeriodicServiceCompilerPassTest
Refactors PeriodicServiceCompilerPass.