Cleans up a bit of code

Cleans up a particularly strange bit of code