Remove a fairly useless function

More efficient in terms of lines to not use a function here.