Cleanup dupe function

Fixed a copy and paste error. I was reordering functions and forgot to
cut and paste. Now removing the duplicate function I accidentally
created.