Is there any way to collapse this down?  There's so much duplication here and I can't help but think it could be made a bit more DRY.