Refactor cartographer server