This is a little uncertain - while it does fix warnings I'm not sure the removed assertion were actually useful in checking the behavior, and I'm not certain how to recreate the assertion without using the depracated path.