Isolated out the process api from LoreiLanguageProcesser.