Great idea! I eliminated lots of lines of code through the refactoring.  I still had to leave three of the lines in, because they were special cases, but the code is a lot cleaner now. Thanks!