Move manager base class into main.