Remove weird extension method that was only used in a single place.