Is there a way to remove the link on full size images in posts/pages?

I still would like to have it for the other smaller sizes. Since the full size image is already full size, it seems unnecessary to link to itself.