refactor bool converters