I would probably refactor the code as Jeff says, but add a comment that describes the function, probably with details about why it's implemented the way it is.
I would probably refactor the code as Jeff says, but add a comment that describes the function, probably with details about why it's implemented the way it is.