This code has a bad smell ( http://en.wikipedia.org/wiki/Code_smell ). Could you put in a note as to why we're doing it this way?