Convert single line conditions to custom structure.