split boolean attributes into required/optional