When I tried to use ugly code before "because that's how it was elsewhere in the file" I was told that that's no reason for new code to be ugly. :P