I'm not sure why it's being done, but if there is a better way of doing it, I'd be happy to refactor it.