Remove dublicated topology initialization. + Format code.