I sense some C&P at work, should this be a static helper method or something?