Removed an unneeded function

It’s only called once, so it doesn’t need to be it’s own function ;)