extract a bot settings class and a bot message processor private class