Move assertions to own methods.