Refactor this code to live in its own method, as it is being used else where as well.  Both uses of this code should be changed to reference the new method.