Can we move the `asbool(..)` into a helper function? It pains me to see it dozens of times.