Some cleanup for ChannelCastDBHandler.