Aggressive code cleanup FTW.
I feel this function should be private!