This is only used in one place and should be moved there.