factor out translation of booleans
Merge pull request #1274 from marcel-blonk/PLFM-2703

factor out translation of booleans