Reduce dependencies on trio