Extract logic from BakaTxtMain to BakaProcessor