Refactors config_manager to support flexible markup