This block of code has evolved quite a bit since I originally design and wrote the feature. While these could be condense now, I'm trying to get a fresh set of bug fixes and updates through our legal department that will condense these and work for more cases. It will be easier and safer to resolve the code changes then.