util: add a function to parse bool properties
While implementing !687 (merged) I though a new boolean quirk was required, so I started by removing some duplicated code.
In the end I noticed that there was a quirk already in place, but still, it's always great to remove duplicated code.