Refactor rotuers
Load the dependencies of the public and private modules when start them.