Again, I feel like I've read this code once already.  Can this get moved to somewhere common?